<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

/* 
var a = prompt("请输入数字");
a = Number(a);
console.log(typeof a);

var b = "10"
b = parseFloat(b);
console.log(typeof b);

var c = "10"
c = parseInt(c);
console.log(typeof c);

var d = "10"
d = d - 0;` 
console.log(typeof d); */
/* 
var a = 15;
var b = Boolean(a);
console.log(typeof b);
 */




/* var a = parseInt(prompt("请输入数字"))
if(a>0){
    console.log("这是一个大于0的数字")
}
   else if(a==0){
    console.log("这是一个等于0的数字")
}
else{
    console.log("这是一个小于0的数字")
}
 */
 var a = parseInt(prompt("请输入要判断的数字"));

for (var i = a; i < 0;) {
      console.log('请输入正数')

  }
  if (i%2==0) {
      console.log("这是个偶数")
    }
   else{

    console.log("这是个奇数")
}








/* 
 var a = parseInt(prompt("请输入你的身高"))
 var b = parseInt(prompt("请输入你的体重"))
 var c = (a-108)*2
 if(c>=b-10 && c<=b+10){
    console.log("你是标准体重无敌啦")
 }
 else{
    console.log("你不是标准体重，要注意身材管理")
 }
 */



    </script>
</body>
</html>